package com.telit.firecommand.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.telit.firecommand.dto.PlotRoomReturnDto;
import com.telit.firecommand.entity.CadPlotRoom;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 标绘房间 Mapper 接口
 * </p>
 *
 * @author yummy
 * @since 2021-07-31
 */
public interface CadPlotRoomDao extends BaseMapper<CadPlotRoom> {

    int insertSelective(CadPlotRoom cadPlotRoom);

    PlotRoomReturnDto searchMinAndMaxTime(String fireAlarmId);

    List<Long> selectUserNameByFireAlarmId(String fireAlarmId);

    Integer searchInRoomByFireAlarmIdAndUserId(@Param("fireAlarmId") String fireAlarmId, @Param("userId") Long userId,
                                               @Param("status") String status);

}
